<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>会员中心</title>
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">
<meta name="format-detection" content="telephone=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<script src="__PUBLIC__/wap/js/flexible.js"></script>
<script type="text/javascript" src="__PUBLIC__/wap/js/jquery.min.js"></script>
<link href="__PUBLIC__/wap/css/icons.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/wap/css/base.css" />
<link rel="stylesheet" type="text/css" href="__PUBLIC__/wap/css/member.css" />
<style type="text/css">
	.change_back_img{
		position: fixed;
		background-color:#eeeeee;
		border-radius: 2px;
		width:80px;
		height:20px;
		left: 70%;
		top:100px;
		display:none
	}
</style>
</head>
<body class="member">
<div class="top">
	<div class="mallbg" style=" background-image:url({$data.background_image|get_member_background_default});">
		<div class="change_back_img">
			更换背景图
		</div>
	</div>
	<div class="mall person"	>
		<div class="avatar">
			<a href="{:U('wap/member/setphoto')}">
			<span style="background:url({$data.member_logo|get_member_logo_default}) #fff" class="bgcover"></span>
			</a>
		</div>
		<div class="name">
			<b class="green">{$data.member_name}</b>
		</div>
		<div class="memberid">
			会员ID：<a class="num">{$data.member_card}</a>
		</div>
	</div>
	<div class="shopinfo person">
		<ul>
			<li><a href="{:U('wap/member/wallet',array('type'=>1))}"><i class="iconfont">&#xe643</i> 积分<span class="num green">{$MemberDetail.points|floor}</span></a></li>
			<li><a href="{:U('wap/member/wallet')}"><i class="iconfont">&#xe641</i> 余额<span class="num green">{$MemberDetail.balance|floor}</span></a></li>
			<li><a  href="{:U('wap/collect/index')}"><i class="iconfont">&#xe62d</i> 收藏<span class="num green">{$MemberDetail.count_collect}</span></a></li>
		</ul>
		<div class="clearfix">
		</div>
	</div>
</div>
<div class="step person">
	<div class="field">
		<div class="list">
			<div class="title">
				<a  href="{:U('wap/goodsorder/index')}">
				<i class="iconfont">&#xe639</i><span>我的订单</span> <span class="floatRgt gray">全部订单 <i class="iconfont">&#xe611</i></span>
				</a>
			</div>
		</div>
		<ul>
			<li>
				<a href="{:U('wap/goodsorder/index',array('order_state'=>0))}">
					<if condition="$member_count.order0 gt 0">
					<b >{$member_count.order0}</b>
					</if>
					<i class="iconfont">&#xe626</i>
					<span>待付款</span>
				</a>
			</li>
			<li>
				<a href="{:U('wap/goodsorder/index',array('order_state'=>1))}">
					<if condition="$member_count.order1 gt 0">
					<b>{$member_count.order1}</b>
					</if>
					<i class="iconfont">&#xe646</i>
					<span>待发货</span>
				</a>
			</li>
			<li>
				<a href="{:U('wap/goodsorder/index',array('order_state'=>2))}">
					<if condition="$member_count.order2 gt 0">
					<b>{$member_count.order2}</b>
					</if>
					<i class="iconfont">&#xe632</i>
					<span>待收货</span>
				</a>
			</li>
			<li>
				<a href="{:U('wap/goodsorder/index',array('order_state'=>3))}">
					<if condition="$member_count.order3 gt 0"><b>{$member_count.order3}</b></if>
					<i class="iconfont">&#xe63d</i>
					<span>已确认</span>
				</a>
			</li>
		</ul>
		<div class="clearfix"></div>
	</div>
	<div class="list mgt20">
		<if condition="$vip_i gt 0" >
		<div class="title">
			<a href="{:U('wap/member/index_vip')}"><i class="iconfont icon" style="color:#f9960f">&#xe633</i><span>店铺管理中心</span> <i class="iconfont floatRgt">&#xe611</i></a>
		</div>
		</if>
		<div class="title">
			<a href="{:U('wap/member/setup')}"><i class="iconfont icon" style="color:#0ba7e4">&#xe630</i><span>个人设置</span> <i class="iconfont floatRgt">&#xe611</i></a>
		</div>
		<div class="title">
			<a href="{:U('wap/cart/index')}"><i class="iconfont icon" style="color:#2ac198">&#xe645</i><span>我的菜篮</span>  <i class="iconfont floatRgt">&#xe611</i></a>
		</div>
		<div class="title">
			<a href="{:U('wap/goodsrefund/refund_list')}"><i class="iconfont icon" style="color:#ff0198">&#xe645</i><span>售后</span>  <i class="iconfont floatRgt">&#xe611</i></a>
		</div>
		<div class="title">
			<a href="{:U('wap/address/index')}"><i class="iconfont icon" style="color:#f05a49">&#xe648</i><span>收货地址</span>  <i class="iconfont floatRgt">&#xe611</i></a>
		</div>
		<div class="title">
			<a href="{:U('wap/member/cashapply')}"><i class="iconfont icon" style="color:#f9960f">&#xe62b</i><span>提现</span> <i class="iconfont floatRgt">&#xe611</i></a>
		</div>
		<div class="title">
			<a href="{:U('wap/member/bank_account')}"><i class="iconfont icon" style="color:#0ba7e4">&#xe647</i><span>银行账户管理</span> <i class="iconfont floatRgt">&#xe611</i></a>
		</div>
		<div class="title">
			<a href="{:U('wap/about/about_us')}"><i class="iconfont icon" style="color:#2ac198">&#xe659</i><span>关于我们</span> <i class="iconfont floatRgt">&#xe611</i></a>
		</div>
	</div>
</div>
<include file="Public/footer_new" />

<script type="text/javascript">
	$(function(){
		//点击背景获取上传背景的按钮
		$('.mallbg').click(function () {
			if($(".change_back_img").css("display")=="none"){
				$(".change_back_img").show(200);
			}else{
				$(".change_back_img").hide();
			}
		});
		//跳转至背景图上传页面
		$(".change_back_img").click(function () {
			window.location.href="<?php echo U('wap/member/setbackimg'); ?>"
		});
	});
</script>
</body>
</html>